﻿@page "/AddLeaveData/ResultAdd"
@using EmployeeLeaveSystem.Shared.DAO;
@inject NavigationManager _NavigationManager
<PageTitle>递交结果</PageTitle>
@if (_NetData.errCode == 200) {
    <Result Status="success"
        Title="您已经成功递交了 请假 的请求"
        SubTitle="请等待审核人的审核，现在你可以在“历史记录”里面查看当前的请假信息">
        <Extra>

            <Button OnClick="()=>{App._appHandle.BackPage();}">返回</Button>

            <br />
            <br />

            <Steps ShowProgressDot Current="1" Style="width:70vw">
            <Step Title="填写完成" Description="填写请假表" />
            <Step Title="审核中" Description="审核人进行相应的审核" />
            <Step Title="开始休假" Description="进行休假" />
            <Step Title="销假" Description="整个假期结束" />
            </Steps>

        </Extra>

        </Result>
} else {
    <Result Status="error"
        Title="拒绝递交请假"
        SubTitle="@_NetData.errMsg">
        <Extra>

            <Button OnClick="()=>{App._appHandle.BackPage();}">返回</Button>

            <br />
            <br />

            <Steps ShowProgressDot Current="0" Style="width:70vw">
            <Step Title="填写完成" Description="填写请假表" />
            <Step Title="审核中" Description="审核人进行相应的审核" />
            <Step Title="开始休假" Description="进行休假" />
            <Step Title="销假" Description="整个假期结束" />
            </Steps>

        </Extra>

        </Result>
}


@code {
    public static NetworkData? _NetData;
}
